from flask import Flask
from flask_redis import FlaskRedis

redis = FlaskRedis()


def create_app():
    app = Flask(__name__)
    app.config.from_object('config')
    blueprint(app)
    redis.init_app(app)
    return app


def blueprint(app):
    from app.docker.router import docker
    app.register_blueprint(docker)
